#include "structureparser.h"
bool StructureParser::startDocument()
{
	return TRUE;
}

bool StructureParser::startElement( const QString&, const QString&,
                                    const QString& qName,
                                    const QXmlAttributes& attr)
{
	int count = qNames.size();
	qNames.push(qName);
	QString indent;
	indent.fill('\t', count);
	qDebug() << indent << "qName=" << qName << " attr count=" << attr.count(); 
	return TRUE;
}

bool StructureParser::endElement( const QString&, const QString&, const QString& )
{
	qDebug() << "pop";
	qNames.pop();
	return TRUE;
}
